﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Site_Admin.master" AutoEventWireup="true" CodeFile="Nguoidung.aspx.cs" Inherits="Admin_Nguoidung" %>

<%@ Register src="../Controls/admin/ucLeftmenu_nd.ascx" tagname="ucLeftmenu_nd" tagprefix="uc1" %>
<%@ Register src="../Controls/admin/ucMenu_nd.ascx" tagname="ucMenu_nd" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Menu" Runat="Server">

    <uc2:ucMenu_nd ID="ucMenu_nd1" runat="server" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CP_left_menu" Runat="Server">
    <uc1:ucLeftmenu_nd ID="ucLeftmenu_nd1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ad_main" Runat="Server">
    <div class="breadcrumb">
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="Trangchu.aspx">Trang chủ</asp:HyperLink>
        <span class="active_breadcrumb">
            <asp:Label ID="lblienKet" runat="server"></asp:Label>
        </span>
    </div>
            
    <div class="nav_tabs">
        <ul>
            <li class="active_tabs">
                <asp:HyperLink ID="linkduyetnd" runat="server"></asp:HyperLink>
            </li>
        </ul>
        <div class="tab_description"><asp:Label ID="lbmota" runat="server"></asp:Label></div>
    </div>
    <div class="border_wrapper">
    <div class="title"><asp:Label ID="lbtitlethem" runat="server" Text="Label"></asp:Label></div>
    
    <table class="general" cellspacing="0" width="100%">                  
        <tbody>
            <tr>
                <td width="100%">
                    <label>Tên đăng nhập <span class="star">*</span></label>
                    <div class="inputs">
                        <asp:TextBox ID="txttk" CssClass="select" runat="server" />
                    </div>
                </td>
            </tr> 
            <tr class="table-row">
                <td width="100%">
                    <label>Họ tên <span class="star">*</span></label>
                    <div class="inputs">
                        <asp:TextBox ID="Txthoten" CssClass="select" runat="server" />
                    </div>
                </td>
            </tr>
            <tr>
                <td width="100%">
                    <label>Địa chỉ Email <span class="star">*</span></label>
                    <div class="inputs">
                        <asp:TextBox ID="txtemail" CssClass="input_text" runat="server" />
                    </div>
                </td>
            </tr>
            <tr class="table-row">
                <td width="100%">
                    <label>Trạng thái <span class="star">*</span></label>
                    <div class="inputs">
                        <asp:DropDownList ID="droptrangthaithemnd" CssClass="select" runat="server">
                            <asp:ListItem Value="1">Mở</asp:ListItem>
                            <asp:ListItem Value="0">Đóng</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </td>
            </tr>                
        </tbody>
    </table>
    <div class="button_wrapper">
        <asp:Button ID="btnthemnd" CssClass="submit_button" Text="Thêm" runat="server" 
            onclick="btnthemnd_Click" />
    </div>

    <div class="title"><asp:Label ID="lbtitle" runat="server" Text="Label"></asp:Label></div>
        <asp:GridView ID="Gvnguoidung" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" CssClass="general" PageSize="5" Width="100%" 
            onrowcancelingedit="Gvnguoidung_RowCancelingEdit" 
            onrowediting="Gvnguoidung_RowEditing" 
            onrowupdating="Gvnguoidung_RowUpdating" 
            onpageindexchanging="Gvnguoidung_PageIndexChanging" 
            onrowdatabound="Gvnguoidung_RowDataBound">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Button ID="btnxoand" runat="server" Text="Xóa" onclick="btnxoand_Click" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chknguoidung" runat="server" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField DataField="Uid" HeaderText="ID" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="UserName" HeaderText="Tài Khoản" ReadOnly="True">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="Name" HeaderText="Tên Người Dùng">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="Email" HeaderText="Email">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="Trạng Thái">
                    <EditItemTemplate>
                        <asp:DropDownList ID="droptrangthaind" runat="server">
                            <asp:ListItem Value="1">Mở</asp:ListItem>
                            <asp:ListItem Value="0">Đóng</asp:ListItem>
                        </asp:DropDownList>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" 
                            Text='<%# CheckTrangThai(Eval("Status")) %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField DataField="Password" HeaderText="Pass" Visible="False" />
                <asp:CommandField CancelImageUrl="~/images/admin/cancel.png" 
                    EditImageUrl="~/images/admin/edit.png" HeaderText="Cập Nhật" 
                    ShowEditButton="True" UpdateImageUrl="~/images/admin/save.png" 
                    ButtonType="Image">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
                </asp:CommandField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>

